//TableHead.js
import React, { Component } from 'react';
import ResizeDivClass_row from './resizeDivClass_row'
// import ResizeDivClass from "./resizeDivClass";
export default class RowTableHead extends Component {
    constructor(props) {
        super(props)
        this.state = {

        }

        this.timer = 0
        this.delay = 200
        this.prevent = false
    }


    onMouseUp=(e)=>{
        //this.props.handleTableHeadMouseUp(e);
    }

    handleRowHeadMouseDown=(e,i)=>{
         this.props.handleRowHeadMouseDown(e,i);
    }

    // handleCellMouseUp=(e,i)=>{
    //     //this.props.handleCellMouseUp(e,i);
    // }

    render() {
        let rowNo = this.props.rowNo;  //列数
        let rowHeight = this.props.rowHeight;  //列数
        // let colWidths=this.props.colWidths;
        return (
            <th key={"th_rowNo_"+rowNo}  style={{height: rowHeight+'pt'}}>
                <div className="tabHeadDiv_row">
                    <div className="tabHeadDiv_row_child"></div>
                    <div className="tabHeadDiv_row_child">{rowNo}</div>
                    <div><ResizeDivClass_row
                        rowNo={rowNo}
                        handleRowHeadMouseDown={(e,p)=>this.handleRowHeadMouseDown(e,p)}/></div>
                 </div>
            </th>
        )
    }
}
